From: Kim F. Storm Date: Thu, 27 Nov 2003 21:28:01 +0000 (+0000) Subject: (posn-object-x-y): New defun. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~24873 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=1af149935db08ada263840b7fa17b7c932f8d1bc;p=emacs.git (posn-object-x-y): New defun. --- diff --git a/lisp/subr.el b/lisp/subr.el index 9dc6c2ba6ec..dba7331f98c 100644 --- a/lisp/subr.el +++ b/lisp/subr.el @@ -757,6 +757,12 @@ POSITION should be a list of the form returned by the `event-start' and `event-end' functions." (nth 4 position)) +(defsubst posn-object-x-y (position) + "Return the x and y coordinates relative to the object of POSITION. +POSITION should be a list of the form returned by the `event-start' +and `event-end' functions." + (nth 7 position)) + ;;;; Obsolescent names for functions.